home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_dev.lha / GMSDev / Includes / desktop / menu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-10  |  2.0 KB  |  76 lines

  1. #ifndef DESKTOP_MENU_H
  2. #define DESKTOP_MENU_H TRUE
  3.  
  4. /*
  5. **  $VER: menu.h V1.0
  6. **
  7. **  Menu Definitions.
  8. **
  9. **  (C) Copyright 1996-1998 DreamWorld Productions.
  10. **      All Rights Reserved.
  11. */
  12.  
  13. #ifndef DPKERNEL_H
  14. #include <dpkernel/dpkernel.h>
  15. #endif
  16.  
  17. /***************************************************************************
  18. ** Menu bar.
  19. */
  20.  
  21. #define TAGS_MENUBAR ((ID_SPCTAGS<<16)|ID_MENUBAR)
  22. #define VER_MENUBAR  1
  23.  
  24. struct MenuBar {
  25.   struct Head   Head;         /* Standard header structure */
  26.   struct Font   *TitleFont;   /* Font to use for menu bar */
  27.   struct Bitmap *Background;  /* If you want a picture in the background */
  28.   BYTE   *Title;              /* Title to appear on the menu bar */
  29.   LONG   BackgroundRGB;       /* The background colour */
  30.   LONG   Style;               /* Sunken, Raised... */
  31. };
  32.  
  33. #define STYLE_RAISED     0x00000001
  34. #define STYLE_SUNKEN     0x00000002
  35. #define STYLE_FLAT       0x00000004
  36. #define STYLE_BORDERLESS 0x00000008
  37.  
  38. /***************************************************************************
  39. ** Menu.
  40. */
  41.  
  42. #define TAGS_MENU ((ID_SPCTAGS<<16)|ID_MENU)
  43. #define VER_MENU  1
  44.  
  45. struct Menu {
  46.   struct Head     Head;       /* Standard header structure */
  47.   struct MenuItem *FirstItem; /* First item in the menu */
  48.   struct Bitmap   *BackImage; /* Background image */
  49.   LONG   BackgroundRGB;       /* Background colour */
  50.   LONG   Style;               /* SUNKEN, RAISED... */
  51.  
  52.   /*** Private fields ***/
  53.  
  54.   WORD Width;    /*  */
  55.   WORD Lines;    /* How many lines of the menu should be displayed */
  56. };
  57.  
  58. /***************************************************************************
  59. ** Menu Item.
  60. */
  61.  
  62. #define TAGS_MENUITEM ((ID_SPCTAGS<<16)|ID_MENUITEM)
  63. #define VER_MENUITEM  1
  64.  
  65. struct MenuItem {
  66.   struct Head Head;    /* Standard header structure */
  67.   struct Font *Font;   /* What font to use */
  68.   BYTE   *Name;        /* Name of the menu item */
  69.   LONG   Flags;
  70. };
  71.  
  72. #define MI_CHECKMARK 0x00000001
  73. #define MI_BAR       0x00000002 /* If this is a bar */
  74.  
  75. #endif /* DESKTOP_MENU_H */
  76.